/*---------------------------------------------------------------------------
	ZaRan	-	A Totallly Automatic CFD Software
	Copyright (C) ,Since 2020
-------------------------------------------------------------------------------
License
	This file is part of ZaRan.

!	@file	timmer.h
!	@brief	record time cost
!	@author	Chen Jie.
\*---------------------------------------------------------------------------*/
#include<chrono>
class Timer
{
private:
	std::chrono::time_point<std::chrono::steady_clock> start, end;
	std::chrono::duration<float>duration;
public:
	Timer(){}
	void Start() { start = std::chrono::high_resolution_clock::now(); }
	float Duration();
};